﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MapAddress.aspx.cs" Inherits="FantastPlatform.Decision.UI.MapAddress" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        //下拉菜单--区域导航
        var tmenu = new Ext.menu.Menu({
            items: [
                { text: '青羊区', handler: function () { document.getElementById("smt").contentWindow.ViewEntire(); } },
                 { text: '太升', handler: function () { document.getElementById("smt").contentWindow.MapChoose('taisheng') } },
                 { text: '草市', handler: function () { document.getElementById("smt").contentWindow.MapChoose('caoshi') } },
                 { text: '新华', handler: function () { document.getElementById("smt").contentWindow.MapChoose('xinhua') } },
                 { text: '黄瓦', handler: function () { document.getElementById("smt").contentWindow.MapChoose('huangwa') } },
                 { text: '西御', handler: function () { document.getElementById("smt").contentWindow.MapChoose('xiyu') } },
                 { text: '汪家', handler: function () { document.getElementById("smt").contentWindow.MapChoose('wangjia') } },
                 { text: '府南', handler: function () { document.getElementById("smt").contentWindow.MapChoose('funan') } },
                 { text: '草堂', handler: function () { document.getElementById("smt").contentWindow.MapChoose('caotang') } },
                 { text: '光华', handler: function () { document.getElementById("smt").contentWindow.MapChoose('guanghua') } },
                 { text: '东坡', handler: function () { document.getElementById("smt").contentWindow.MapChoose('dongpo') } },
                 { text: '金沙', handler: function () { document.getElementById("smt").contentWindow.MapChoose('jinsha') } },
                 { text: '苏坡', handler: function () { document.getElementById("smt").contentWindow.MapChoose('supo') } },
                 { text: '黄田', handler: function () { document.getElementById("smt").contentWindow.MapChoose('huangtian') } },
                 { text: '文家', handler: function () { document.getElementById("smt").contentWindow.MapChoose('wenjia') } }
                 ]
        });
        var smp = new Yaxunsoft.GpsPatrol.SuperMapPanel({
            renderTo: 'smp_div',
            longitude: "<%=Getlongitude() %>",
            latitude: "<%=Getlatitude() %>",
            tbar: [{
                text: '全幅显示',
                iconCls: 'quanping',
                handler: function () { document.getElementById("smt").contentWindow.ViewEntire(); }
            }, '-', {
                text: '平移',
                iconCls: 'pingyi',
                handler: function () { document.getElementById("smt").contentWindow.SetPanAction(); }
            }, '-', {
                text: '拉框放大',
                iconCls: 'fangda',
                handler: function () { document.getElementById("smt").contentWindow.SetZoomInAction(); }
            }, '-', {
                text: '拉框缩小',
                iconCls: 'suoxiao',
                handler: function () { document.getElementById("smt").contentWindow.SetZoomOutAction(); }
            },'-', {
             text: '标点',
             iconCls: 'kuagxua',
             handler: function () { document.getElementById("smt").contentWindow.Mark(); }
         },'-', {
             text: '区域导航',
             menu: tmenu
         }]
        });
    </script>
</head>
<body>
    <div id="smp_div">
    
    </div>
</body>
</html>
